#include<stdio.h>

#define N 65

void to_bits(int num);
int main(int argc, char *argv[])
{
	int num;
	scanf("%d", &num);
	to_bits(num);

	return 0;
}

void to_bits(int num){
	int len = 0;
	int arr[N] = {0};

	if(0 == num){
		printf("%d\n", num);
		return;
	}
	while(0 != num){
		arr[len++] = num%2;
		num/=2;
	}
	for(int i = len-1; i >= 0; i--){
		printf("%d", arr[i]);
	}
	printf("\n");
	return;
}

